#pragma once
#include "End.h"
class FCEnd: public End
{
public:
	FCEnd(int x, int y, int width, int height, char stroke[], int strokeWidth, char fill[]):
		End(x, y, width, height, stroke, strokeWidth, fill)
	{
	}

public:
	FCEnd(void);
	~FCEnd(void);

	void Fill(MyGraphics* g)
	{
		g->FillEllipse(_fill, _x, _y, _width, _height);
	}

	void Draw(MyGraphics* g)
	{
		Fill(g);

		// Ve ellipse
		g->DrawEllipse(_stroke, _strokeWidth, _x, _y, _width, _height);

		// Ve chu "End" o giua
		g->DrawText2(_stroke, "End", 10, _x + _x * 2/5, _y * 2);
	}
};

